package cn.sherer.beans.weixin;

import java.io.Serializable;

/**
 * 微信用户手机号信息
 */
public class WxPhoneInfo implements Serializable {
    /** 用户绑定的手机号（国外手机号会有区号） */
    private String phoneNumber;
    /** 没有区号的手机号 */
    private String purePhoneNumber;
    /** 区号 */
    private String countryCode;
    /** 数据水印 */
    private WxWatermark watermark;

    public WxPhoneInfo() {
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPurePhoneNumber() {
        return purePhoneNumber;
    }

    public void setPurePhoneNumber(String purePhoneNumber) {
        this.purePhoneNumber = purePhoneNumber;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public WxWatermark getWatermark() {
        return watermark == null ? new WxWatermark() : watermark;
    }

    public void setWatermark(WxWatermark watermark) {
        this.watermark = watermark;
    }

    @Override
    public String toString() {
        return "WxPhoneInfo{" + "phoneNumber=" + phoneNumber + ", purePhoneNumber=" + purePhoneNumber + ", countryCode=" + countryCode + ", watermark=" + watermark + "}";
    }
}
